package com.example.service;

import com.example.dto.ArticleTagDto;
import com.example.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.utils.ResponseResult;

import java.util.List;

/**
* @author sprite-pc
* @description 针对表【sg_article(文章表)】的数据库操作Service
* @createDate 2023-12-16 20:57:41
*/
public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId,String title,String summary);

    ResponseResult getArticle(int id);

    ResponseResult updateViewCount(int id);

    void publish(Article article);

    ResponseResult getList(int pageNum, int pageSize);

    ResponseResult updateArticle(ArticleTagDto article);

    ResponseResult deleteArticle(List<Long> ids);

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);
}
